#include<stdio.h>

int main()
{
 int fact=1,i=1,num,factor=0;
printf("enter the number:");
scanf("%d",&num);
for(i=1;i<=num;i++)
{
for(num=1;num<=i;num++)
fact=fact*num;
factor=factor+i/fact;
}
printf("ffff=%d",factor);
return 0;
}
